<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>标准编码类型管理</title>
    <link rel="stylesheet" href="${base}/static/res/manage/css/common.css">
    <link rel="stylesheet" href="${base}/static/res/manage/css/ec.css">
    <link rel="stylesheet" href="${base}/static/res/manage/css/list.css">
    <style type="text/css">
        .tablist {
            min-height: 350px;
        }
    </style>
    <script type="text/javascript" src="${base}/static/res/plugin/jquery/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="${base}/static/res/plugin/validator/jquery.validate.min.js"></script>
    <script type="text/javascript" src="${base}/static/res/plugin/layer/layer.min.js"></script>
    <script type="text/javascript" src="${base}/static/res/admin/js/common.js"></script>
    <script type="text/javascript" src="${base}/static/res/admin/js/list.js"></script>
    <script type="text/javascript" src="${base}/static/res/admin/js/scrollView.js"></script>
    <script type="text/javascript">
        $(function () {
            [@flash_message /]
        });
    </script>
</head>
<body>
<div class="tab set">
    <h3><a href="javascript:;"> 标准编码管理-${codeType.codeTypeName}</a></h3>
    <form id="listForm" action="list.jhtml" method="get">
        <div class="txte">
            <a id="addType" href="add.jhtml?typeId=${codeType.id}" class="ared">添加信息</a>
        </div>
        <div class="tablist">
            <table cellpadding="0" cellspacing="0" class="scrollTable">
                <tr>
                    <th>编码值</th>
                    <th>编码名称</th>
                    <th>可用</th>
                    <th>排序</th>
                    <th>ICON</th>
                    <th class="icon">操作</th>
                </tr>
            [#list list as stdCode]
                <tr>
                    <td class="center">
                        ${stdCode.code}
                    </td>
                    <td class="center">
                        ${stdCode.codeName}
                    </td>
                    <td class="center">
                        ${stdCodeName("IS_ENABLED",stdCode.isEnabled?string(1,0))}
                    </td>
                    <td class="center">
                        ${stdCode.orders}
                    </td>
                    <td class="center">
                        [#if stdCode.codeIco??]
                            <img src="${stdCode.codeIco}" style="width: 30px;"/>
                        [/#if]
                    </td>
                    <td class="icon">
                        <div>
                            <a href="edit.jhtml?id=${stdCode.id}&" class="edit"></a>
                            <a type="delOne" idName="id" idVal="${stdCode.id}" href="javascript:void(0)"
                               class="delete"></a>
                        </div>
                    </td>
                </tr>
            [/#list]
            </table>
        </div>
    </form>
</div>
</body>
</html>